#pragma once
#include "joui.h"
#include "config.h"

namespace JOUI
{
	void Jo_UIPath_Create(LPVOID& dst);
	HRESULT Jo_UIPath_LineTo(LPVOID hPath, float x1, float y1, float x2, float y2);
	HRESULT Jo_UIPath_AddRect(LPVOID hPath, float left, float top, float right, float bottom);
	HRESULT Jo_UIPath_AddRoundRect(LPVOID hPath, float left, float top, float right, float bottom, float radius);
	HRESULT Jo_UIPath_AddCustomRoundRect(LPVOID hPath, float left, float top, float right, float bottom,
		float radius_left_top, float radius_right_top, float radius_right_bottom, float radius_left_bottom
	);
	HRESULT Jo_UIPath_AddArc(LPVOID hPath, float x1, float y1, float x2, float y2, float radiusX, float radiusY, bool fClockwise = false);
	HRESULT Jo_UIPath_BeginPath(LPVOID hPath, bool winding_mode = false);
	HRESULT Jo_UIPath_EndPath(LPVOID hPath);
	HRESULT Jo_UIPath_StartFigure(LPVOID hPath, float x, float y);
	HRESULT Jo_UIPath_FinishFigure(LPVOID hPath, bool close_figure = false);
	void Jo_UIPath_Destroy(LPVOID hPath);
	HRESULT Jo_UIPath_Reset(LPVOID hPath);

}